package org.example.mapper;


import org.apache.ibatis.annotations.MapKey;
import org.example.pojo.ListMap;
import org.example.pojo.Volunteer;
import org.apache.ibatis.annotations.Mapper;
import org.example.pojo.volunteerDataCount;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author:曹震
 * @Date: 2024/12/5 14:25
 */
@Mapper
public interface VolunteerAnalyzeMapper {
    List<Volunteer> sortListVolunteer();

   Volunteer listVolunteerTask(String volunteerId);

//    int  findFiveStar(String volunteerId);
//
//     int findFourStar(String volunteerId);
//
//    int findThereStar(String volunteerId);
//
//    int findTowStar(String volunteerId);
//
//    int findOneStar(String volunteerId);
    List<ListMap> accountTaskType(String volunteerId);

    List<ListMap> accountVolunteersEvaluate(String volunteerId);
    @MapKey("key")
    List<Map<String ,Integer>>  activeMap();

    List<Integer> listVolunteerRating();

    List<volunteerDataCount> findMonthlyCountByTime();

    List<volunteerDataCount> findWeekCountByTime(String data);

    List<Integer> findMonthlyAllCount();

    List<Volunteer>getVolunteerToDayRegisterList();
}
